package com.naizhuai.Model.db.managenote;

import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Delete;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.OnConflictStrategy;
import android.arch.persistence.room.Query;

import com.naizhuai.Model.db.Tables;
import com.naizhuai.Model.db.eneity.ManageNoteBean;
import com.naizhuai.Model.db.search.SearchHistoryBean;

import java.util.List;


@Dao
public interface ManageNoteDao {


    @Query("SELECT * FROM "+ Tables.MANAGE_NOTE+" where status=:status" )
    List<ManageNoteBean> searchUserByStatus(int status);


    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void saveManageNoteData(List<ManageNoteBean> searchBean);

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void saveManageNoteSingleData(ManageNoteBean searchBean);


    @Delete
    void deleteManageNoteData(ManageNoteBean bean);


}
